﻿---@class UnityEngine.Texture2D : UnityEngine.Texture
---@field public mipmapCount System.Int32
---@field public format UnityEngine.TextureFormat
---@field public whiteTexture UnityEngine.Texture2D
---@field public blackTexture UnityEngine.Texture2D
local m = {}
---@return UnityEngine.Texture2D
function m.CreateExternalTexture() end
function m:UpdateExternalTexture() end
function m:SetPixel() end
---@return UnityEngine.Color
function m:GetPixel() end
---@return UnityEngine.Color
function m:GetPixelBilinear() end
function m:SetPixels() end
function m:SetPixels32() end
---@return System.Boolean
function m:LoadImage() end
function m:LoadRawTextureData() end
---@return table
function m:GetRawTextureData() end
---@return table
function m:GetPixels() end
---@return table
function m:GetPixels32() end
function m:Apply() end
---@return System.Boolean
function m:Resize() end
function m:Compress() end
---@return table
function m:PackTextures() end
---@return System.Boolean
function m.GenerateAtlas() end
function m:ReadPixels() end
---@return table
function m:EncodeToPNG() end
---@return table
function m:EncodeToJPG() end
---@return table
function m:EncodeToEXR() end
return m
